import {
    createRouter,
    createWebHashHistory
} from "vue-router";
import HomePage from '../components/HomePage.vue'
import GeHu from '../pages/ShouYe/GeHu/GeHu.vue'
import ContentOne from '../components/ContentOne.vue'
import FenLei from '../components/FenLei.vue'
import SuPin from '../components/SuPin.vue'
import HeHuo from '../components/HeHuo.vue'
import WoDe from '../components/WoDe.vue'
import Home from '../components/Home.vue'
import XiaoXi from '../pages/ShouYe/XiaoXi/XiaoXi.vue'
import LiangRen from '../pages/ShouYe/LiangRen/LiangRen.vue'
import ShouCang from '../pages/Wode/ShouCang/ShouCang.vue'
import TuanDui from '../pages/Wode/TuanDui/TuanDui.vue'
import YaoQing from '../pages/Wode/YaoQing/YaoQing.vue'
export default createRouter({
    history: createWebHashHistory(),
    routes: [{
            path: '/',
            component: Home,
            redirect:'/HomePage',
            children: [{
                    path: '/HomePage',
                    component: HomePage,
                    redirect: '/HomePage/ContentOne',
                    children: [{
                        path: 'ContentOne',
                        component: ContentOne,
                    }, {
                        path: 'GeHu',
                        component: GeHu,
                    }, ]
                },
                {
                    path: '/FenLei',
                    component: FenLei,
                }, {
                    path: '/SuPin',
                    component: SuPin,
                }, {
                    path: '/HeHuo',
                    component: HeHuo,
                }, {
                    path: '/WoDe',
                    component: WoDe,
                    // children:[{
                    //     path:'ShouCang',
                    //     component:ShouCang
                    // }]
                },
            ]
        },
        {
            path:'/XiaoXi',
            component:XiaoXi
        },
        {
            path:'/LiangRen',
            component:LiangRen
        },
        {
            path:'/ShouCang',
            component:ShouCang
        },{
            path:'/TuanDui',
            component:TuanDui
        },{
            path:'/YaoQing',
            component:YaoQing
        }
        

    ]
})